package com.hyou.sc.zuul.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 通用Bean配置
 * 
 * @author FengChangshuo
 * @version 1.0.0 2018-04-19 16:36:59 初始创建
 */
@Configuration
public class ApplicationZuulConfig {
    
    /**
     * <pre>
     * NONE : No logging.
     * BASIC : Log only the request method and URL and the response status code and execution time.
     * HEADERS : Log the basic information along with request and response headers.
     * FULL : Log the headers, body, and metadata for both requests and responses.
     * </pre>
     * 
     * @return Feign日志级别
     */
    @Bean
    public feign.Logger.Level loggerLevel() {
        return feign.Logger.Level.HEADERS;
    }
    
}
